<template>
  <el-card class="box-card h100" :style="themeOpacity">
    <div slot="header" class="clearfix draggable-move-clazz">
      <el-input :value="title" class="draggable-setting-input" v-show="isDraggable" />
      <span v-show="!isDraggable">{{ title }}</span>
    </div>
    <el-scrollbar class="scrollbar-none-horizontal" style="height: 100%;">
      <el-row :gutter="5">
        <el-col :span="12" class="card-two-item">
          <el-link href="notice" :underline="false">
            <img src="@/assets/images/notice-list.png" alt="" class="icon-image" />
            <span>通知公告列表</span>
          </el-link>
        </el-col>
        <el-col :span="12" class="card-two-item">
          <el-link href="freeRoom" :underline="false">
            <img src="@/assets/images/classroom-query.png" alt="" class="icon-image" />
            <span>空闲教师查询</span>
          </el-link>
        </el-col>
        <el-col :span="12" class="card-two-item">
          <el-link href="repairOrder" :underline="false">
            <img src="@/assets/images/order-query.png" alt="" class="icon-image" />
            <span>报修订单查询</span>
          </el-link>
        </el-col>
        <el-col :span="12" class="card-two-item">
          <el-link href="problemFeedback" :underline="false">
            <img src="@/assets/images/order-query.png" alt="" class="icon-image" />
            <span>平台意见反馈</span>
          </el-link>
        </el-col>
        <el-col :span="12" class="card-two-item">
          <el-link href="#" :underline="false">
            <img src="@/assets/images/oa-check.png" alt="" class="icon-image" />
            <span>OA审批</span>
          </el-link>
        </el-col>
        <el-col :span="12" class="card-two-item">
          <el-link href="/client/studentSchedule" :underline="false">
            <img src="@/assets/images/oa-check.png" alt="" class="icon-image" />
            <span>学生课表查询</span>
          </el-link>
        </el-col>
        <el-col :span="12" class="card-two-item">
          <el-link href="/client/studentGrade" :underline="false">
            <img src="@/assets/images/monitor-query.png" alt="" class="icon-image" />
            <span>学生成绩查询</span>
          </el-link>
        </el-col>
      </el-row>
    </el-scrollbar>
  </el-card>
</template>

<script>
  import { mixin } from '@/mixin'
  export default {
    name: 'OaServer',
    data() {
      return {
        title: 'OA服务'
      }
    },
    props: {
      isDraggable: {
        type: Boolean,
        default: false
      }
    },
    components: {},
    mixins: [mixin]
  }
</script>

<style scoped lang="scss">
  .card-two-item {
    padding-bottom: 10px;
    .el-link {
      line-height: 26px;
      .icon-image {
        margin-right: 10px;
      }
    }
    .card-item-text {
      line-height: 30px;
      display: inline-block;
      width: calc(100% - 50px);
      text-align: left;
    }
    .card-item-num {
      display: inline-block;
      width: 50px;
      text-align: left;
    }
  }
</style>
